import {
  DIC
} from '@/const/dic'
export const tabOption = {
  index: true,
  indexLabel: '序号',
  border: true,
  selection: false,
  menuBtn: true,
  addBtn: false,
  cellBtn: false,
  editBtn: false,
  delBtn: false,
    size: 'mini',
  dicData: DIC,
  columnBtn: false,
  refreshBtn: false,
  align: "center",
  menuWidth: 350,
  menuAlign: "center",
  column: [{
    label: "审批单号",
    prop: "coded",
  }, {
    label: "审批状态",
    prop: "state",
    slot: true,
  }, {
    label: "总金额(元)",
    prop: "totalPrice",
  }, {
    label: "供应商",
    prop: "supplierName",
  }, {
    label: "申请人",
    prop: "applyUserInfoName",
  }, {
    label: "申请时间",
    prop: "purchasingDate",
      width: "100",
  }, {
    label: "审批人",
    prop: "dealUserName",
  }, {
    label: "审批时间",
    prop: "dealDate",
      width: "100",
  }]
};

export const addModeTabOption = {
  index: true,
  indexLabel: '序号',
  border: true,
  selection: true,
  menuBtn: false,
  menu: false,
  addBtn: false,
  cellBtn: false,
  editBtn: false,
    size: 'mini',
  delBtn: false,
  dicData: DIC,
  columnBtn: false,
  refreshBtn: false,
  align: "center",
  menuAlign: "center",
  column: [{
    label: "物品编号",
    prop: "coded",
  }, {
    label: "物品名称",
    prop: "name",
    // slot: true,
  }, {
    label: "规格",
    prop: "specs",
  }, {
    label: "库存量",
    prop: "kcNum",
/*  }, {
    label: "将过期/已过期库存",
    prop: "sbname",*/
  }, {
    label: "采购数量",
    width: 100,
    prop: "num",
    slot: true
  }, {
    label: "单位",
    prop: "unit",
  }, {
    label: "单价(元)",
    prop: "price",
    width: 100,
    slot: true
  }, {
    label: "总金额(元)",
    prop: "totalPrice",
    slot: true
  }]
};

export const addModeSelectModeTabOption = {
  index: true,
  indexLabel: '序号',
  border: true,
  selection: true,
  menuBtn: true,
    size: 'mini',
  menu: false,
  addBtn: false,
  cellBtn: false,
  editBtn: false,
  delBtn: false,
  dicData: DIC,
  columnBtn: false,
  refreshBtn: false,
  align: "center",
  menuWidth: 300,
  menuAlign: "center",
  column: [{
    label: "物品编号",
    prop: "coded",
  }, {
    label: "物品名称",
    prop: "name",
    // slot: true,
  }, {
    label: "规格",
    prop: "specs",
  }, {
    label: "库存量",
    prop: "inventoryCount",
 /* }, {
    label: "将过期/已过期库存",
    prop: "dangerousList",
    slot: true*/
  }, {
    label: "单位",
    prop: "unit",
  }]
};

export const examineModeTabOption = {
  index: true,
  indexLabel: '序号',
  border: true,
  selection: false,
  menuBtn: false,
  menu: false,
  addBtn: false,
    size: 'mini',
  cellBtn: false,
  editBtn: false,
  delBtn: false,
  dicData: DIC,
  columnBtn: false,
  refreshBtn: false,
  align: "center",
  menuWidth: 300,
  menuAlign: "center",
  column: [{
      label: "物品编号",
      prop: "coded",
    }, {
      label: "物品名称",
      prop: "name",
      // slot: true,
    }, {
      label: "规格",
      prop: "specs",
    }, {
      label: "采购数量",
      prop: "num",
    },
    //  {
    //   label: "将过期/已过期库存",
    //   prop: "sbname",
    // },
    // {
    //   label: "采购数量",
    //   prop: "sbname",
    // },
    //  {
    //   label: "单位",
    //   prop: "sbname",
    // },
    {
      label: "单价(元)",
      prop: "price",
    }, {
      label: "总金额(元)",
      prop: "totalPrice",
    }
  ]
};